-
Notifications
You must be signed in to change notification settings - Fork 231
Migrate org.eclipse.ui.workbench.texteditor.tests to JUnit 5 #3718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Test Results 3 024 files +1 008 3 024 suites +1 008 2h 15m 22s ⏱️ + 31m 35s Results for commit cfe4a46. ± Comparison against base commit dd7a449. This pull request removes 2 and adds 7 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
b1dde02 to
65f9cad
Compare
...xteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/revisions/HunkComputerTest.java
Show resolved
Hide resolved
...nch.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/HippieCompletionTest.java
Outdated
Show resolved
Hide resolved
a3724d7 to
5f2fc4e
Compare
...nch.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/HippieCompletionTest.java
Show resolved
Hide resolved
...nch.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/HippieCompletionTest.java
Show resolved
Hide resolved
5f2fc4e to
2336d9f
Compare
akurtakov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Please merge when tests succeed.
|
Thanks for the review @akurtakov |
2336d9f to
31c4ddf
Compare
31c4ddf to
cfe4a46
Compare
Code Changes:
* Replaced JUnit 4 imports (e.g., org.junit.Test,
org.junit.Assert) with JUnit 5 equivalents (org.junit.jupiter.api.Test, org.junit.jupiter.api.Assertions).
* Updated lifecycle annotations (@before -> @beforeeach, @after
-> @AfterEach).
* Updated assertEquals and assertFalse/assertTrue calls to match
JUnit 5's argument order (expected, actual, message / condition, message).
* Replaced ExpectedException usage and try-catch-fail blocks with
Assertions.assertThrows.
* Replaced @rule public TestName with TestInfo injection in test
methods and setup methods.
* Updated TextEditorPluginTest to use
@TestMethodOrder(MethodOrderer.MethodName.class) instead of @FixMethodOrder.